package com.yxhl.zoume.data.http.rest.repositoryimpl;

import com.yxhl.zoume.data.http.repository.user.AccountRepository;
import com.yxhl.zoume.data.http.rest.param.login.GetSmsCodeParam;
import com.yxhl.zoume.data.http.rest.param.login.MobileLoginParam;
import com.yxhl.zoume.data.http.rest.repositoryimpl.base.BaseDataRepository;
import com.yxhl.zoume.data.http.rest.response.login.GetSmsCodeResponse;
import com.yxhl.zoume.data.http.rest.response.login.MobileLoginResponse;

import javax.inject.Inject;

import rx.Observable;

/**
 * 用户相关数据请求
 * <p>
 * Created by Xboy on 16/3/15.
 */
public class AccountDataRepository extends BaseDataRepository implements AccountRepository {

    @Inject
    public AccountDataRepository() {
    }


    @Override
    public Observable<GetSmsCodeResponse> getSmsCode(GetSmsCodeParam param) {
        return mZouMeService.getSmsCode(param);
    }

    @Override
    public Observable<MobileLoginResponse> loginByMobile(MobileLoginParam param) {
        return mZouMeService.loginByMobile(param);
    }
}
